﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLV.Library.Utilities;
using System.Globalization;

namespace DLV.Data.Entities
{
    public class PriceInfo
    {

        #region private fields

        private int _priceId = Null.NullInteger;
        private int _itemId = Null.NullInteger;
        private int _itemType = Null.NullInteger;
        private string _time = Null.NullString;
        private decimal _salePrice = Null.NullDecimal;
        private int _createdBy = Null.NullInteger;
        private DateTime _createdDate = Null.NullDate;
        private int _updatedBy = Null.NullInteger;
        private DateTime _updatedDate = Null.NullDate;
        private int _status = Null.NullInteger;
        private string _season = Null.NullString;
        private DateTime _beginDate = Null.NullDate;
        private DateTime _endDate = Null.NullDate;
        private int _ticketType = Null.NullInteger;
        private int _rated = Null.NullInteger;
        private string _flightArrivals = Null.NullString;
        private decimal _salePriceChild = Null.NullDecimal;
        private decimal _priceBaby = Null.NullDecimal;

        #endregion

        #region public properties

        public int PriceId
        {
            get { return _priceId; }
            set { _priceId = value; }
        }
        public int ItemId
        {
            get { return _itemId; }
            set { _itemId = value; }
        }
        public int ItemType
        {
            get { return _itemType; }
            set { _itemType = value; }
        }
      
        public string Time
        {
            get { return _time; }
            set { _time = value; }
        }
       public decimal SalePrice
        {
            get { return _salePrice; }
            set { _salePrice = value; }
        }
        public int CreatedBy
        {
            get { return _createdBy; }
            set { _createdBy = value; }
        }
        public DateTime CreatedDate
        {
            get { return _createdDate; }
            set { _createdDate = value; }
        }
        public int UpdatedBy
        {
            get { return _updatedBy; }
            set { _updatedBy = value; }
        }
        public DateTime UpdatedDate
        {
            get { return _updatedDate; }
            set { _updatedDate = value; }
        }
        public int Status
        {
            get { return _status; }
            set { _status = value; }
        }
        public string Season
        {
            get { return _season; }
            set { _season = value; }
        }

        public DateTime BeginDate
        {
            get { return _beginDate; }
            set { _beginDate = value; }
        }

        public DateTime EndDate
        {
            get { return _endDate; }
            set { _endDate = value; }
        }

        public int TicketType
        {
            get { return _ticketType; }
            set { _ticketType = value; }
        }

        public int Rated
        {
            get { return _rated; }
            set { _rated = value; }
        }

        public string FlightArrivals
        {
            get { return _flightArrivals; }
            set { _flightArrivals = value; }
        }

        public decimal SalePriceChild
        {
            get { return _salePriceChild; }
            set { _salePriceChild = value; }
        }
        #endregion

        #region Custom
        public string ItemName { get; set; }        
        public string LocationName { get; set; }
        public string PartnerName { get; set; }
        public string ScheduleName { get; set; }
        public string TypeName { get; set; }
        public string ConcernSortName { get; set; }
        public string MenuTypeName { get; set; }
        public string MenuName { get; set; } 
        public string ServiceName { get; set; }
        public string ConcernFullName { get; set; }
        public string PriceName {
            
            get
            {
                
                return  Time + " -- " + TypeName;
            }
        }
        public string PriceNameByHotel
        {
            get { return RoomName; }
        }
        public string RoomName { get; set; }
        public int HotelId { get; set; }
        public string Begin { get; set; }
        public string End { get; set; }

        public int ConcernId{ get; set; }
        public int ScheduleId{ get; set; }

        public decimal PriceBaby
        {
            get { return _priceBaby; }
            set { _priceBaby = value; }
        }
        public string LandTourName { get; set; }
        #endregion
    }
}
